<?php global $messagetype;global $message;?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title><?php global $title; echo $title;?></title>
<link rel="stylesheet" type="text/css" href="dist/semantic.min.css">
<script src="assets/script/jquery.min.js"></script>
<script src="dist/semantic.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	dealSize($(window).width());
	$(window).resize(function () {
		dealSize($(window).width());
	});
});
function dealSize(size){
	if(size<781){
		$("#ti_artict").hide();
		$("#ti_events").hide();
		$("#drop").show();
		$("#stu").text("");
		$(".tablet.only").hide();
		$(".maincl").attr("class","sixteen wide column maincl");
		
	}else{
		$("#ti_artict").show();
		$("#ti_events").show();
		$("#drop").hide();
		$("#stu").text("学生云系统");
		$(".tablet.only").show();
 		$(".maincl").attr("class","thirteen wide column maincl");
	}
}
</script>
</head>
<body>
	<a id="mod" class="<?php global $mod;echo $mod;?>"></a>
	<div class="ui top fixed menu inverted" id="topmenu">
		<div class="ui container" id="topmenu">
			<a href="index.php" class="header item" id="headeritem"> <img
				class="logo" src="assets/images/logo.png">
				<p id="stu">学生云系统</p>
			</a> <a href="home.php" class="item" id="ti_home">家园</a> <a
				href="home.php" class="item" id="ti_homework">作业</a>
			<div class="ui simple dropdown item" id="drop">
				更多 <i class="dropdown icon"></i>
				<div class="menu">
					<a href="home.php" class="item" id="tid_artict">文章</a> <a
						href="home.php" class="item" id="tid_events">活动</a>
				</div>
			</div>
			<a href="home.php" class="item" id="ti_artict">文章</a> <a
				href="home.php" class="item" id="ti_events">活动</a>
			<div class="right menu">
			<?php if(!isLogined()){?>
				<a href="login.php" class="item" id="b_login">登录</a> <a
					href="login.php" class="item" id="b_register">注册</a>
			<?php } else {?>
						<div class="ui simple dropdown item" id="prsonal">
				<?php global $_G;print_r($_G["profile"]["name"]); ?> <i
						class="dropdown icon"></i>
					<div class="menu">
						<a href="misc.php?op=logout" class="item" id="b_logout">登出</a>
					</div>
				</div>
			<?php }?>
			</div>
		</div>
	</div>
	<div id="content" style="padding-top: 1cm;">
		<?php
global $temp;
if (! loadTemp($temp)) {
    $messagetype = "error";
    $message = "你的请求，无效，系统无法找到相应的界面。";
    loadTemp("modules/module_info.php");
}
?></div>
</body>
</html>